package net.hancl.common.annotation;

import net.hancl.common.constants.MenuReadWrite;

import java.lang.annotation.*;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
// @Inherited
public @interface PermissionAnnot {
    public String id() default "-1";//权限标识

    // public String menuId() default "-1";
    public String name() default "";

    public String cls() default "";

    public int order() default -1;

    public MenuReadWrite readWrite() default MenuReadWrite.ReadWrite;// 菜单 控制

    /**
     * The permission string which will be passed to
     * {@link org.apache.shiro.subject.Subject#isPermitted(String)} to determine
     * if the user is allowed to invoke the code protected by this annotation.
     */
    // String[] value();

    /**
     * The logical operation for the permission checks in case multiple roles
     * are specified. AND is the default
     *
     * @since 1.1.0
     */
    // Logical logical() default Logical.AND;

}
